﻿@using DistanceLearning.Controllers
@using DistanceLearning.Models
@model IEnumerable<DistanceLearning.Models.Journal>

@{
    ViewBag.Title = "Администрирование";
}

<h2>Администрирование</h2>

<style type="text/css">
    html,body{margin:0;padding:0}
    body{font: 76% arial,sans-serif}
    p{margin:0 10px 10px}
    div#mmenu h1{height:80px;line-height:80px;margin:0; /*id = header*/
        padding-left:10px;background: #EEE;color: #79B30B}
    div#journal_tree p{line-height:1.4}/*id = content*/
    div#user_details{background:#FF8539}
    div#footer p{margin:0;padding:5px 10px}

    div#wrapper{float:left;width:80%}
    div#journal_tree{ margin: 0 0%; width:50%}
    div#mmenu{ margin: 0 0%;width:50%}
    div#user_details{float:left;width:40%;margin-left:-21%}/*id = extra*/
    div#footer{clear:left;width:100%}

</style>

<script src="@Url.Content("~/Scripts/Administration/administration.js")"></script>

<div id="container">
    
    <div id="wrapper">
        <div id="mmenu">
            <input type="button" id="add_pupil_class" value="Новый класс" />
            <input type="button" id="add_user" value="Новый пользователь" />
            <input type="button" id="rename" value="Переименовать" />
            <input type="button" id="remove" value="Удалить" />
        </div>
        <div id="journal_tree">
            
        </div>
    </div>
    <div id="user_details">
        <p>Описание пользователя</p>  
    </div>
    
    <div id="progress" style="display: none;">
        <img src="/Images/loading.gif" alt="loader" />
    </div>
    <div id="footer">
        @{
            var footerOptions = new AjaxOptions
                                    {
                                        HttpMethod = "POST",
                                        Url = Url.Action("CreateLessons", "Administration"),
                
                                    };
        }
        @using (Ajax.BeginForm(footerOptions))
        {
            <fieldset>
                <input type="submit" value="Создать расписание" />
            </fieldset>
        }
    </div>
</div>

